<script>
	export default {
		//应用启动时只触发一次
		onLaunch: function() {
			console.log('App Launch')
			// user已写死
			this.$api.get_user({
				user_id:'61309cea0d306900016d67ae'
			}).then((res)=>{
				this.$store.dispatch('set_userinfo',res.data)
				// console.log(res)
			})
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
	@import 'components/u-parse/u-parse.css';
</style>
